<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	$title = $userInfo['nickName'] .'('. $userInfo['userName'] .') '. lang_user_home ;
	include "header.php";
	
?>
<script type="text/javascript" src="<?php echo HOSTROOT;?>min/f=<?php echo ROOT_PATH;?>upload/scripts/swfobject.js,<?php echo ROOT_PATH;?>upload/scripts/jquery.upload.min.js,<?php echo JS_PATH;?>homeEdit.js"></script>
</head>
<body>
	<?php  require('top.php');  ?>

<div class="pos">
	<div class="contents">
    	<?php require('nav.php'); ?>   
        <h2 class="title"><?php echo $navigation -> getList();?><span><a href="<?php echo urlRewrite('option=home&id='. $user -> id())?>"><?php echo lang_preview_works_show;?></a></span></h2>
        <div id="homeEdit" class="homeEdit">
        <form action="<?php echo WEB_ROOT_PATH;?>?option=userIntoAction&type=action" method="post" name="userIntoForm" id="userIntoForm" class="form">
        <ul class="box">
        <li class="highBig"><?php echo lang_account_info;?></li>
        <li><label><?php echo lang_email;?>:</label><strong><?php echo htmlShow($userInfo['userName']); ?></strong></li>
        <li><label><?php echo lang_username;?>:</label><strong><?php echo htmlShow($userInfo['nickName']); ?></strong></li>
        <hr />
        <li class="highBig"><?php echo lang_user_face;?></li>
        <li>
        <div id="facePhoto" class="facePhoto"><img src="<?php echo getUserBigFace($userInfo['faceBig']); ?>" /><img src="<?php echo getUserFace($userInfo['faceSmall']); ?>" />
        </div>
        <div id="faceSmallQueue"></div>
        <input type="file" name="mediaThumb" id="mediaThumb" /></li>        
        <hr />
        <li class="highBig"><?php echo lang_personal_description;?></li>
        <li><textarea cols="50" rows="8" id="description" name="description"><?php echo $userInfo['description']?></textarea>
        <h4><?php echo lang_you_can_also_enter;?><span id="descriptionNum" class="limitLen"></span><?php echo lang_characters;?></h4></li>
        </ul>
        <div class="highOther">
            <li><input name="" type="submit" value="<?php echo lang_submit;?>" class="submit" /></li>
        </div>
        </form>
        </div><!--#upload-->
	</div><!-- .contents-->
</div>

</body>
</html>
